home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 October: Technology Seed / ADC Seed CD - October 1999.toast / FireWire / FireWire_2.1_SDK_DR3 / Source / SBP2 / SampleSBP2Family / SampleSBP2Expert.c next >
Encoding:
C/C++ Source or Header  |  1999-05-17  |  1.8 KB  |  99 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        SampleSBP2Expert.c
  3.  
  4.     Contains:    Sample code for SBP-2 Expert
  5.  
  6.     Version:    1.0
  7.  
  8.     Copyright:    © 1998 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     File Ownership:
  11.  
  12.         DRI:                Eric Anderson
  13.  
  14.         Other Contact:        
  15.  
  16.         Technology:            FireWire
  17.  
  18.     Writers:
  19.  
  20.         (EA)    Eric Anderson (ewa)
  21.  
  22.     Change History (most recent first):
  23.  
  24.        <FW2>     9/20/98    EA        Filled in header comments.
  25.        <FW1>     9/20/98    EA        first checked in
  26. */
  27.  
  28.  
  29. #include <Types.h>
  30. #include <Errors.h>
  31. #include <NameRegistry.h>
  32. #include <DriverServices.h>
  33. #include <Devices.h>
  34. #include <CodeFragments.h>
  35. #include <GenericDriverFamily.h>
  36. #include <SampleSBP2.h>
  37. #include <SampleSBP2Priv.h>
  38. /*zzz*/
  39. static char  debugStr[256];
  40. /*zzz*/
  41.  
  42.  
  43. ////////////////////////////////////////////////////////////////////////////////
  44. //
  45. // The service descriptor.
  46. //
  47.  
  48. GDFServiceDescription             TheGDFServiceDescription =
  49. {
  50.     kGDFServiceDescriptionSignature,
  51.     kInitialGDFServiceDescriptor,
  52.     {
  53.         kNdrvTypeIsSampleSBP2,
  54.         1, 0, finalStage, 1,
  55.         0
  56.     },
  57.     {
  58.         0,
  59.         "\pSampleSBP2",
  60.         { 0, 0, 0, 0, 0, 0, 0, 0 }
  61.     }
  62. };
  63.  
  64.  
  65. ////////////////////////////////////////////////////////////////////////////////
  66. ////////////////////////////////////////////////////////////////////////////////
  67. //
  68. // Private routines.
  69. //
  70. ////////////////////////////////////////////////////////////////////////////////
  71. ////////////////////////////////////////////////////////////////////////////////
  72.  
  73. ////////////////////////////////////////////////////////////////////////////////
  74. //
  75. // GDFExpertEntryPoint
  76. //
  77. //   This routine installs the sample SBP expert loader.
  78. //
  79.  
  80. long    GDFExpertEntryPoint(void)
  81. {
  82.     return ((long) InstallSBPExpert ());
  83. }
  84.  
  85.  
  86. ////////////////////////////////////////////////////////////////////////////////
  87. //
  88. // SBPExpertTerminate
  89. //
  90. //   This proc terminates the sample SBP expert loader.
  91. //
  92.  
  93. long    SBPExpertTerminate()
  94. {
  95.     return ((long) UninstallSBPExpert ());
  96. }
  97.  
  98.  
  99.